

{{ define "content" }}

	{{ $name := .Data.Plural }}
	{{ $length := len .Data.Pages }}


	{{ if eq $name "categories" -}}
		<p class="art-list-summary">
			当前分类：{{ .Data.Term }}，共计 {{ len .Data.Pages }} 篇文章
		</p>
	{{ else if eq $name "tags" }}
		<p class="art-list-summary">
			当前标签：{{ .Data.Term }}，共计 {{ len .Data.Pages }} 篇文章
		</p>
	{{ end }}
	
	{{ if or ( eq $name "categories") ( eq $name "tags")}}
		{{ $paginator := .Paginate .Data.Pages .Site.Params.archivePaginate }}
		<div class="art-list-box">
			{{ range $paginator.Pages }}
				{{ partial "art-list-item.html" . }}
			{{ end }}
		</div>
		{{ $.Scratch.Set "paginator" $paginator }}
		{{ partial "pagination.html" . }}
	{{ else }}
		{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
		{{ $.Scratch.Set "paginator" $paginator }}
		{{ partial "archive.html" . }}
	{{ end }}
	

	
{{ end }}	